import module from '../../module'

export default name => {
    const root = `${module.code}/${name}/`
    const crud = $http.crud(root)
    // 车辆列检查询车辆信息
    crud.getcarinfoforcheck = params => {
        return $http.get('/dispatch/common/getcarinfoforcheck', params)
    }
    //车辆列检
    crud.carcheckadd = params => {
        return $http.post('/dispatch/common/carcheckadd', params)
    }

    //车辆列检记录查询
    crud.carcheckquery = params => {
        return $http.get('/dispatch/common/carcheckquery', params)
    }
    return {
        ...crud
    }
}
